﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyNet.Componets.Core.Pagers
{
    public class PagerCondition
    {
        private string _field;
        private string[] _fieldArray;
        public string Field
        {
            get
            {
                return _field;
            }
            set
            {
                _field = value;
                _fieldArray = _field.SplitRemoveEmpty(".");
            }
        }

        public string[] FieldSplitedArray { get { return _fieldArray; } }

        private string _value;
        private string[] _valueArray;
        public string Value
        {
            get
            {
                return _value;
            }
            set
            {
                _value = value;
                _valueArray = _value.SplitRemoveEmpty(",");
            }
        }

        public string[] ValueSplitedArray { get { return _valueArray; } }

        public string Filter { get; set; }

        public string Join { get; set; }
    }
}
